package springCloud.service;

import com.luoqiu.entities.Payment;
import com.luoqiu.entities.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author 洛秋y
 * @date 2020/11/20 11:22
 */
@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")  //调用服务的名字
public interface OrderFeignService {

    //调用服务名字里面的具体的uri
    @GetMapping(value = "/get")
    Result<Payment> get();

}
